﻿<%@ Page Title="Crear proyecto" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
	CodeBehind="Create.aspx.cs" Inherits="TraceThisItem.WebUI.Projects.Create" %>

<asp:Content ID="Head" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Body" ContentPlaceHolderID="MainContent" runat="server">
	<h2>
		Crear proyecto</h2>
	<asp:ValidationSummary runat="server" CssClass="failureNotification" />
	<fieldset>
		<legend>Datos del proyecto</legend>
		<table>
			<tr>
				<td>
					<asp:Label ID="ProjectNameLabel" Text="Nombre:" runat="server" AssociatedControlID="ProjectName" />
				</td>
				<td>
					<asp:TextBox ID="ProjectName" runat="server" />
					<asp:RequiredFieldValidator ID="ProjectNameRequired" runat="server" ControlToValidate="ProjectName"
						CssClass="failureNotification" ErrorMessage="El nombre es obligatorio." ToolTip="El nombre es obligatorio."
						ValidationGroup="CreateProjectValidationGroup">*</asp:RequiredFieldValidator>
				</td>
			</tr>
			<tr>
				<td>
					<asp:Label ID="ProjectOwnerLabel" Text="Propietario:" runat="server" AssociatedControlID="ProjectOwner" />
				</td>
				<td>
					<asp:DropDownList ID="ProjectOwner" runat="server" DataSourceID="UserDataSource"
						DataTextField="FullName" DataValueField="UserName" AppendDataBoundItems="True">
					</asp:DropDownList>
				</td>
			</tr>
		</table>
	</fieldset>
	<p class="submitButton">
		<asp:Button ID="CreateProjectButton" runat="server" Text="Crear proyecto" ValidationGroup="CreateProjectValidationGroup"
			OnClick="CreateProjectButton_Click" />
	</p>
	<asp:ObjectDataSource ID="UserDataSource" runat="server" OldValuesParameterFormatString="original_{0}"
		SelectMethod="GetUsers" TypeName="TraceThisItem.Domain.Facade" OnObjectCreating="UserDataSource_ObjectCreating">
	</asp:ObjectDataSource>
</asp:Content>
